package com.atguigu.tingshu.album.service.impl;

import com.atguigu.tingshu.album.mapper.BaseAttributeMapper;
import com.atguigu.tingshu.album.service.BaseAttributeService;
import com.atguigu.tingshu.model.album.BaseAttribute;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class BaseAttributeServiceImpl extends ServiceImpl<BaseAttributeMapper, BaseAttribute> implements BaseAttributeService {

    @Autowired
    private BaseAttributeMapper baseAttributeMapper;

    @Override
    public List<BaseAttribute> findAttribute(Long categoryId) {
        return baseAttributeMapper.findAttribute(categoryId);
    }
}
